Answer Set Programming with Functions
نویسندگان
چکیده
To compute a function such as a mapping from vertices to colors in the graph coloring problem, current practice in Answer Set Programming is to represent the function as a relation. Among other things, this often makes the resulting program unnecessarily large when instantiated on a large domain. The extra constraints needed to enforce the relation as a function also make the logic program less transparent. In this paper, we consider adding functions directly to normal logic programs. We show that the answer set semantics can be generalized to these programs straightforwardly. We also show that the notions of loops and loop formulas can be extended, and that through program completion and loop formulas, a normal logic program with functions can be transformed to a Constraint Satisfaction problem.
منابع مشابه
FGP approach to multi objective quadratic fractional programming problem
Multi objective quadratic fractional programming (MOQFP) problem involves optimization of several objective functions in the form of a ratio of numerator and denominator functions which involve both contains linear and quadratic forms with the assumption that the set of feasible solutions is a convex polyhedral with a nite number of extreme points and the denominator part of each of the objecti...
متن کاملFunctional Stable Model Semantics and Answer Set Programming Modulo Theories
Recently there has been an increasing interest in incorporating “intensional” functions in answer set programming. Intensional functions are those whose values can be described by other functions and predicates, rather than being pre-defined as in the standard answer set programming. We demonstrate that the functional stable model semantics plays an important role in the framework of “Answer Se...
متن کاملIntroducing Real Variables and Integer Objective Functions to Answer Set Programming
Answer set programming languages have been extended to support linear constraints and objective functions. However, the variables allowed in the constraints and functions are restricted to integer and Boolean domains, respectively. In this paper, we generalize the domain of linear constraints to real numbers and that of objective functions to integers. Since these extensions are based on a tran...
متن کاملThe Role of Functions in the Stable Model Semantics
The rich modelling capabilities and efficient solvers of ASP have enabled the successful application of ASP to many domains. However, due to an issue called the “grounding bottleneck” that arises especially in numeric domains, ASP still faces some challenges in being applied to such domains. Recent work has considered hybrid approaches, using a combination of ASP and other KR formalisms includi...
متن کاملPartial Functions and Equality in Answer Set Programming
In this paper we propose an extension of Answer Set Programming (ASP) [1], and in particular, of its most general logical counterpart, Quantified Equilibrium Logic (QEL) [2], to deal with partial functions. Although the treatment of equality in QEL can be established in different ways, we first analyse the choice of decidable equality with complete functions and Herbrand models, recently propos...
متن کامل